/* 全局样式重置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: #0d1117;
  color: #c9d1d9;
  overflow: hidden;
}

/* 滚动条样式 */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #161b22;
}

::-webkit-scrollbar-thumb {
  background: #30363d;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #484f58;
}

/* 通用按钮样式 */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  background: transparent;
  color: inherit;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.btn-primary {
  background: linear-gradient(135deg, #238636, #2ea043);
  color: white;
  box-shadow: 0 2px 8px rgba(35, 134, 54, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #2ea043, #238636);
  box-shadow: 0 4px 12px rgba(35, 134, 54, 0.4);
}

.btn-secondary {
  background: linear-gradient(135deg, #1f6feb, #0969da);
  color: white;
  box-shadow: 0 2px 8px rgba(31, 111, 235, 0.3);
}

.btn-secondary:hover {
  background: linear-gradient(135deg, #0969da, #1f6feb);
  box-shadow: 0 4px 12px rgba(31, 111, 235, 0.4);
}

.btn-info {
  background: linear-gradient(135deg, #8b5cf6, #a855f7);
  color: white;
  box-shadow: 0 2px 8px rgba(139, 92, 246, 0.3);
}

.btn-info:hover {
  background: linear-gradient(135deg, #a855f7, #8b5cf6);
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
}

.btn-icon {
  font-size: 16px;
}

/* 加载动画 */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loading {
  animation: spin 1s linear infinite;
}

/* 工具提示 */
.tooltip {
  position: relative;
}

.tooltip:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: #21262d;
  color: #f0f6fc;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 12px;
  white-space: nowrap;
  z-index: 1000;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

/* 响应式设计 */
@media (max-width: 768px) {
  .btn {
    padding: 6px 12px;
    font-size: 12px;
  }
  
  .btn-icon {
    font-size: 14px;
  }
} 